package com.community.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseServiceImpl;
import com.community.mapper.MemberDAO;
import com.community.dto.MemberDTO;
import com.community.po.MemberPO;
import com.community.service.MemberService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @ToDo:
 * @Author：高尚磊
 * @date: 2024/6/4 17:15
 */
@Service
@Slf4j
public class MemberServiceImpl extends BaseServiceImpl<MemberDAO, MemberPO, MemberDTO>implements MemberService {
//    @Override
//    public Page<MemberDTO> getAllMember(MemberDTO memberDTO) {
//        return this.baseMapper.getAllMember(memberDTO);
//    }
//
//    @Override
//    public MemberPO getMemberId(Long id) {
//        return this.baseMapper.getById(id);
//    }

    @Override
    public Page<?> page(MemberDTO memberDTO) {
        return this.baseMapper.page(memberDTO);
    }

    @Override
    public MemberPO getById(Long id) {
        return  this.baseMapper.getById(id);
    }

    @Override
    public int getCount() {
        return this.baseMapper.getCount();
    }
}

